package l

import (
	"fmt"
	"log"
	"os"
)

const (
	LOG_PATH = "./"
)

func Log(err error) {
	file, err := os.OpenFile(LOG_PATH+"log", os.O_WRONLY, 0666)
	if err != nil {
		panic(err)
	}
	defer file.Close()
	l := log.New(file, "", log.Lshortfile)
	l.Println(err)
}
func Debug(err error) {
	if err != nil {
		log.Fatal(err)
	}
}
func Print(err error) {
	if err != nil {
		fmt.Println(err)
	}
}
